import request from '@/utils/request'

// 查询记账列表列表
export function listAccountList(query) {
  return request({
    url: '/easybook/accountList/list',
    method: 'get',
    params: query
  })
}

// 查询记账列表详细
export function getAccountList(accountId) {
  return request({
    url: '/easybook/accountList/' + accountId,
    method: 'get'
  })
}

// 新增记账列表
export function addAccountList(data) {
  return request({
    url: '/easybook/accountList',
    method: 'post',
    data: data
  })
}

// 修改记账列表
export function updateAccountList(data) {
  return request({
    url: '/easybook/accountList',
    method: 'put',
    data: data
  })
}

// 删除记账列表
export function delAccountList(accountId) {
  return request({
    url: '/easybook/accountList/' + accountId,
    method: 'delete'
  })
}
